/**
 * 管理认证模块
 */
const userControllers = require('../../controllers/user-controllers')
const { registerRoute } = require('../../utils/routerHelper');

const Router = require('koa-router')

const router = new Router()

// 自动注册路由
registerRoute(router, userControllers, 'post', '/login', 'login');
registerRoute(router, userControllers, 'get', '/getUserInfo', 'getUserInfo');
registerRoute(router, userControllers, 'post', '/createUser', 'createUser', 'json');

module.exports = router
